.class Lcom/waiqin365/h5/ui/d;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;


# direct methods
.method constructor <init>(Lcom/waiqin365/h5/ui/WqTreeMoreUI;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    iget-object v0, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    invoke-static {v0}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->a(Lcom/waiqin365/h5/ui/WqTreeMoreUI;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    const-string/jumbo v0, "data"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    const-string/jumbo v0, "data"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_0
    invoke-static {v2, v0}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->a(Lcom/waiqin365/h5/ui/WqTreeMoreUI;Ljava/lang/String;)Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    const-string/jumbo v0, "title"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    const-string/jumbo v0, "title"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_1
    invoke-static {v2, v0}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->b(Lcom/waiqin365/h5/ui/WqTreeMoreUI;Ljava/lang/String;)Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    const-string/jumbo v0, "selectIds"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    const-string/jumbo v0, "selectIds"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_2
    invoke-static {v2, v0}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->c(Lcom/waiqin365/h5/ui/WqTreeMoreUI;Ljava/lang/String;)Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    const-string/jumbo v0, "showToLevel"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_5

    const-string/jumbo v0, "showToLevel"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_3
    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    invoke-static {v2, v0}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->a(Lcom/waiqin365/h5/ui/WqTreeMoreUI;I)I

    iget-object v0, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    invoke-static {v0}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->b(Lcom/waiqin365/h5/ui/WqTreeMoreUI;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v2, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    const-string/jumbo v0, "isCheckNode"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_6

    const/4 v0, 0x1

    :goto_4
    invoke-static {v2, v0}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->a(Lcom/waiqin365/h5/ui/WqTreeMoreUI;Z)Z

    new-instance v0, Lcom/waiqin365/lightwork/directory/b/v;

    invoke-direct {v0}, Lcom/waiqin365/lightwork/directory/b/v;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    invoke-static {v1}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->c(Lcom/waiqin365/h5/ui/WqTreeMoreUI;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightwork/directory/b/v;->f:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    invoke-static {v1}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->c(Lcom/waiqin365/h5/ui/WqTreeMoreUI;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightwork/directory/b/v;->g:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    invoke-static {v1}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->d(Lcom/waiqin365/h5/ui/WqTreeMoreUI;)Z

    move-result v1

    iput-boolean v1, v0, Lcom/waiqin365/lightwork/directory/b/v;->k:Z

    iget-object v1, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    iget-object v1, v1, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->a:Ljava/lang/String;

    iput-object v1, v0, Lcom/waiqin365/lightwork/directory/b/v;->d:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    invoke-static {v1}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->e(Lcom/waiqin365/h5/ui/WqTreeMoreUI;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    invoke-static {v1}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->e(Lcom/waiqin365/h5/ui/WqTreeMoreUI;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightwork/directory/b/v;->e:Ljava/lang/String;

    :cond_0
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    invoke-static {v2}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->f(Lcom/waiqin365/h5/ui/WqTreeMoreUI;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v2

    const-class v3, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "param"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v0, "showToLevel"

    iget-object v2, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    invoke-static {v2}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->g(Lcom/waiqin365/h5/ui/WqTreeMoreUI;)I

    move-result v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string/jumbo v0, "data"

    iget-object v2, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    invoke-static {v2}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->b(Lcom/waiqin365/h5/ui/WqTreeMoreUI;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/h5/ui/d;->a:Lcom/waiqin365/h5/ui/WqTreeMoreUI;

    invoke-static {v0}, Lcom/waiqin365/h5/ui/WqTreeMoreUI;->f(Lcom/waiqin365/h5/ui/WqTreeMoreUI;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v0

    invoke-virtual {v0, v1}, Lorg/apache/cordova/WqCordovaActivity;->startActivity(Landroid/content/Intent;)V

    :cond_1
    :goto_5
    return-void

    :cond_2
    const-string/jumbo v0, "[]"

    goto/16 :goto_0

    :cond_3
    const-string/jumbo v0, ""

    goto/16 :goto_1

    :cond_4
    const-string/jumbo v0, ""

    goto/16 :goto_2

    :cond_5
    const-string/jumbo v0, "0"
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_3

    :cond_6
    const/4 v0, 0x0

    goto/16 :goto_4

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_5
.end method
